//
//  HZMOtherView.m
//  糖糖大魔王
//
//  Created by 韩震明 on 15/10/30.
//  Copyright © 2015年 韩震明. All rights reserved.
//

#import "HZMOtherView.h"

@implementation HZMOtherView

- (void)dealloc
{
    [_author release];
    [_content release];
    [_otherViewTags release];
    [_datestr release];
    [_pics release];
    [_dynamic release];
    [_share_url release];
    [super dealloc];
}


- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeBool:self.liked forKey:@"liked"];
    [aCoder encodeObject:self.content forKey:@"content"];
    [aCoder encodeObject:self.author forKey:@"author"];
    [aCoder encodeObject:self.otherViewTags forKey:@"otherViewTags"];
    [aCoder encodeObject:self.pics forKey:@"pics"];
    [aCoder encodeObject:self.dynamic forKey:@"dynamic"];
    [aCoder encodeObject:self.share_url forKey:@"share_url"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    [super init];
    if (self) {
        self.liked = [aDecoder decodeBoolForKey:@"liked"];
        self.content = [aDecoder decodeObjectForKey:@"content"];
        self.author = [aDecoder decodeObjectForKey:@"author"];
        self.otherViewTags = [aDecoder decodeObjectForKey:@"otherViewTags"];
        self.pics = [aDecoder decodeObjectForKey:@"pics"];
        self.dynamic = [aDecoder decodeObjectForKey:@"dynamic"];
        self.share_url = [aDecoder decodeObjectForKey:@"share_url"];
    }
    return self;
}



- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"tags"]) {
        self.otherViewTags = value;
    }
   
}



@end
